package com.jeesite.modules.exam.score.entity;

import javax.validation.constraints.Size;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 考核任务评分-被考核单位总分Entity
 * @author xhc
 * @version 2022-05-28
 */
@Table(name="dc_sup_exam_org_score", alias="a", label="考核任务评分-被考核单位总分信息", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="exam_id", attrName="examId", label="考核任务id",isQuery=true),
		@Column(name="exame_org", attrName="exameOrg", label="被考核单位编码", comment="被考核单位编码（单选）",isQuery=true),
		@Column(name="exame_name", attrName="exameName", label="被考核单位名称", comment="被考核单位名称（单选）", queryType=QueryType.LIKE),
		@Column(name="my_score", attrName="myScore", label="得分", isUpdateForce=true),
		@Column(name="total_score", attrName="totalScore", label="总分", isUpdateForce=true),
		@Column(name="percentage", attrName="percentage", label="百分比", isUpdateForce=true),
	}, orderBy="a.id DESC"
)
public class DcSupExamOrgScore extends DataEntity<DcSupExamOrgScore> {
	
	private static final long serialVersionUID = 1L;
	 /**
	 * 考核任务id
	 */
	private String examId;

	public String getExameOrgName() {
		return exameOrgName;
	}

	public void setExameOrgName(String exameOrgName) {
		this.exameOrgName = exameOrgName;
	}

	/**
	 * 被考核单位编码（单选）
	 */
	private String exameOrg;

	private String exameOrgName;
	 /**
	 * 被考核单位名称（单选）
	 */
	private String exameName;
	 /**
	 * 得分
	 */
	private Double myScore;
	 /**
	 * 总分
	 */
	private Double totalScore;

	/**
	 * 排名
	 */
	private int ranking;

	/**
	 * 百分比
	 */
	private Double percentage;

	private String sortType;

	/**
	 * 单位分类
	 */
	private String groupUnit;


	public String getGroupUnit() {
		return groupUnit;
	}

	public void setGroupUnit(String groupUnit) {
		this.groupUnit = groupUnit;
	}

	public String getSortType() {
		return sortType;
	}

	public void setSortType(String sortType) {
		this.sortType = sortType;
	}

	public DcSupExamOrgScore() {
		this(null);
	}

	public DcSupExamOrgScore(String id){
		super(id);
	}

	public Double getPercentage() {
		return percentage;
	}

	public void setPercentage(Double percentage) {
		this.percentage = percentage;
	}

	public int getRanking() {
		return ranking;
	}

	public void setRanking(int ranking) {
		this.ranking = ranking;
	}

	@Size(min=0, max=64, message="考核任务id长度不能超过 64 个字符")
	public String getExamId() {
		return examId;
	}

	public void setExamId(String examId) {
		this.examId = examId;
	}
	
	@Size(min=0, max=100, message="被考核单位编码长度不能超过 100 个字符")
	public String getExameOrg() {
		return exameOrg;
	}

	public void setExameOrg(String exameOrg) {
		this.exameOrg = exameOrg;
	}
	
	@Size(min=0, max=100, message="被考核单位名称长度不能超过 100 个字符")
	public String getExameName() {
		return exameName;
	}

	public void setExameName(String exameName) {
		this.exameName = exameName;
	}
	
	public Double getMyScore() {
		return myScore;
	}

	public void setMyScore(Double myScore) {
		this.myScore = myScore;
	}
	
	public Double getTotalScore() {
		return totalScore;
	}

	public void setTotalScore(Double totalScore) {
		this.totalScore = totalScore;
	}
	
}